<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/9
 * Time: 14:54
 */

namespace App\Http\Model;


class ProductMainInfoModel extends CommonModel {

    protected $table      = 'product_main_info';
    protected $primaryKey = 'PmiId';
    protected $fillable   = ['PmiInfo','PmiProductId'];


    public function __construct(array $attributes=[]) {
        parent::__construct($attributes);
    }

    public function findProductById($id) {
        return self::where('PmiStatus',0)->find($id);
    }


}